reset 
set data style lines  
set nokey
set xrange [0:14]
set xtics 1
set yrange [-5:5]
set ytics 1
set grid
S0(x) = 1.3 + (0.539624)*(x - (0.9)) + (0)*(x - (0.9))**2 + (-0.247649)*(x - (0.9))**3
S1(x) = 1.5 + (0.420752)*(x - (1.3)) + (-0.297179)*(x - (1.3))**2 + (0.946912)*(x - (1.3))**3
S2(x) = 1.85 + (1.0868)*(x - (1.9)) + (1.40726)*(x - (1.9))**2 + (-2.95638)*(x - (1.9))**3
S3(x) = 2.1 + (1.29494)*(x - (2.1)) + (-0.366567)*(x - (2.1))**2 + (-0.446635)*(x - (2.1))**3
S4(x) = 2.6 + (0.593399)*(x - (2.6)) + (-1.03652)*(x - (2.6))**2 + (0.445051)*(x - (2.6))**3
S5(x) = 2.7 + (-0.0221911)*(x - (3)) + (-0.502457)*(x - (3))**2 + (0.17416)*(x - (3))**3
S6(x) = 2.4 + (-0.503406)*(x - (3.9)) + (-0.0322258)*(x - (3.9))**2 + (0.0780757)*(x - (3.9))**3
S7(x) = 2.15 + (-0.477075)*(x - (4.4)) + (0.0848877)*(x - (4.4))**2 + (1.31417)*(x - (4.4))**3
S8(x) = 2.05 + (-0.0713162)*(x - (4.7)) + (1.26764)*(x - (4.7))**2 + (-1.58122)*(x - (4.7))**3
S9(x) = 2.1 + (0.26234)*(x - (5)) + (-0.155455)*(x - (5))**2 + (0.0431153)*(x - (5))**3
S10(x) = 2.25 + (0.0807755)*(x - (6)) + (-0.0261092)*(x - (6))**2 + (-0.00466634)*(x - (6))**3
S11(x) = 2.3 + (0.0145582)*(x - (7)) + (-0.0401082)*(x - (7))**2 + (-0.02445)*(x - (7))**3
S12(x) = 2.25 + (-0.139008)*(x - (8)) + (-0.113458)*(x - (8))**2 + (0.0174707)*(x - (8))**3
S13(x) = 1.95 + (-0.335834)*(x - (9.2)) + (-0.0505636)*(x - (9.2))**2 + (-0.0127279)*(x - (9.2))**3
S14(x) = 1.4 + (-0.53183)*(x - (10.5)) + (-0.100202)*(x - (10.5))**2 + (-0.0203252)*(x - (10.5))**3
S15(x) = 0.9 + (-0.731178)*(x - (11.3)) + (-0.148983)*(x - (11.3))**2 + (1.21341)*(x - (11.3))**3
S16(x) = 0.7 + (-0.492949)*(x - (11.6)) + (0.943082)*(x - (11.6))**2 + (-0.839275)*(x - (11.6))**3
S17(x) = 0.6 + (-0.141335)*(x - (12)) + (-0.0640482)*(x - (12))**2 + (0.0363821)*(x - (12))**3
S18(x) = 0.5 + (-0.1789)*(x - (12.6)) + (0.00143957)*(x - (12.6))**2 + (-0.447971)*(x - (12.6))**3
S19(x) = 0.4 + (-0.392775)*(x - (13)) + (-0.536126)*(x - (13))**2 + (0.595695)*(x - (13))**3
Sp0(x) = ( x >= 0.8 && x <= 1.4) ? S0(x) : 0/0
Sp1(x) = ( x >= 1.2 && x <= 2) ? S1(x) : 0/0
Sp2(x) = ( x >= 1.8 && x <= 2.2) ? S2(x) : 0/0
Sp3(x) = ( x >= 2 && x <= 2.7) ? S3(x) : 0/0
Sp4(x) = ( x >= 2.5 && x <= 3.1) ? S4(x) : 0/0
Sp5(x) = ( x >= 2.9 && x <= 4) ? S5(x) : 0/0
Sp6(x) = ( x >= 3.8 && x <= 4.5) ? S6(x) : 0/0
Sp7(x) = ( x >= 4.3 && x <= 4.8) ? S7(x) : 0/0
Sp8(x) = ( x >= 4.6 && x <= 5.1) ? S8(x) : 0/0
Sp9(x) = ( x >= 4.9 && x <= 6.1) ? S9(x) : 0/0
Sp10(x) = ( x >= 5.9 && x <= 7.1) ? S10(x) : 0/0
Sp11(x) = ( x >= 6.9 && x <= 8.1) ? S11(x) : 0/0
Sp12(x) = ( x >= 7.9 && x <= 9.3) ? S12(x) : 0/0
Sp13(x) = ( x >= 9.1 && x <= 10.6) ? S13(x) : 0/0
Sp14(x) = ( x >= 10.4 && x <= 11.4) ? S14(x) : 0/0
Sp15(x) = ( x >= 11.2 && x <= 11.7) ? S15(x) : 0/0
Sp16(x) = ( x >= 11.5 && x <= 12.1) ? S16(x) : 0/0
Sp17(x) = ( x >= 11.9 && x <= 12.7) ? S17(x) : 0/0
Sp18(x) = ( x >= 12.5 && x <= 13.1) ? S18(x) : 0/0
Sp19(x) = ( x >= 12.9 && x <= 13.4) ? S19(x) : 0/0
plot 'pontos.txt' using 1:2 t 'pontos' with points pt(7) lt(8)
replot Sp0(x)
replot Sp1(x)
replot Sp2(x)
replot Sp3(x)
replot Sp4(x)
replot Sp5(x)
replot Sp6(x)
replot Sp7(x)
replot Sp8(x)
replot Sp9(x)
replot Sp10(x)
replot Sp11(x)
replot Sp12(x)
replot Sp13(x)
replot Sp14(x)
replot Sp15(x)
replot Sp16(x)
replot Sp17(x)
replot Sp18(x)
replot Sp19(x)
pause -1  
set out 'splineCubicaMono.eps' 
set term post mono 'Times-Roman' 18 
replot